package cn.jiyun.entity.day15;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author sjt
 * @Date 2023/8/14 19:09
 * @PackageName: cn.jiyun.entity.day15.train
 */
@TableName("train")
@Data
public class Train {
    @TableId(value = "tid",type = IdType.AUTO)
    private Integer tid;
    private String tname;
    private String imgUrl;
    private String tags;
    private Integer count;
    private String schedule;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date starttime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date endtime;
    private Integer sortId;
    private String status;
    private String info1;
    private String tmethod;
    private Integer mix1;
    private Integer mix2;
}
